home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Get1IndString / info.txt < prev   
Text File  |  2014-09-28  |  2KB  |  42 lines

  1. Subject:  Get1IndString
  2. Author:  Gregory Jorgensen
  3. Uploaded By:  RadixInc
  4. Date:  8/9/1995
  5.  
  6. File:  Get1IndString.sit (2134 bytes) 
  7. Estimated Download Time (60658 baud):  < 1 minute
  8. Download Count:  156
  9.  
  10. Needs:  C++ compiler
  11.  
  12. Keywords:  GETINDSTRING STRING LIST RESOURCE
  13.  
  14.  
  15. LIBRARY:   MDV/Developer Source Code/C++
  16. KEYWORDS:  GETINDSTRING STRING LIST RESOURCE
  17.  
  18. Get1IndString is a function that should be in the Toolbox but isn't. It is a one-deep version of GetIndString. It returns a specific string from a STR# resource, but only looks in the current (top) resource file for the resource. The Toolbox GetIndString function will search the entire resource chain, which is sometimes what you want, but sometimes not. This is source code for four functions; there are no patches of any kind involved.
  19.  
  20. Programmers interested in the mysteries of STR# resources, C and Pascal strings, and overly-clever "for" loops should have a look.
  21.  
  22. This file contains four functions:
  23.  
  24. Get1IndString: 1-deep version of the Toolbox GetIndString function
  25.  
  26. get1indstring: C-string version of Get1IndString
  27.  
  28. CountStrings: count number of strings in an STR# resource
  29.  
  30. Count1Strings: 1-deep version of CountStrings
  31.  
  32. You will need a C++ compiler to compile the code, but the functions can be called from either C or C++.
  33.  
  34. Copyright 1995 Gregory W. Jorgensen, All Rights Reserved
  35. May be used and distributed free of charge, but copyright notice in source code must be left intact.
  36.  
  37. ------------------------------------------------------------
  38. Macintosh Developers Forum Libraries         Go Keyword: MDV
  39.  
  40. This file has been checked for viruses with Disinfectant 3.6
  41.  
  42.